import http from "@/utils/http";

// 分页
export const goodsInfoPage = (params)=> http.get('/merchantsapi/goods/info/page', params)

// 详情
export const goodsInfoDetail = (id)=> http.get(`/merchantsapi/goods/info/detail/${id}`)

// 新增
export const goodsInfoAdd = (data)=> http.post('/merchantsapi/goods/info/add', data)

// 编辑
export const goodsInfoEdit = (data)=> http.post('/merchantsapi/goods/info/edit', data)

// 删除
export const goodsInfoDelete = (id)=> http.delete(`/merchantsapi/goods/info/delete/${id}`)